﻿using System.Data.Entity.ModelConfiguration;
using Wamm.Model.Entities;

namespace Wamm.EntityFrameworkImplementation.EntityConfigurations {
    public class ParticipantTypeConfiguration : EntityConfiguration<ParticipantType> {
        public ParticipantTypeConfiguration()
        {
            this.Property(et => et.Name).IsRequired();
            this.Property(et => et.AddedBy).IsRequired();
            this.Property(et => et.LastUpdatedBy).IsRequired();
            // the following are required due to using a not nullable data type:
            // Id
            // Added
            // LastUpdated
        }
    }
}
